package encaps.entities;

import java.util.Date;

public class Comment {

    private Long id;
    private Long user_id;
    private String username;
    private String content;
    private Date editDate;
    private Date creationDate;

    public Comment(Long id, Long user_id, String content, Date date, String username) {
        this.id = id;
        this.user_id = user_id;
        this.username = username;
        this.content = content;
        this.creationDate = date;
        editDate = date;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return user_id;
    }

    public String getUsername() {
        return username;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public Date getEditDate() {
        return editDate;
    }

    public void setEditDate(Date date) {
        editDate = date;
    }

    public String stringRepresentation() {
        return "Comment: [id=" + id + ", uid=" + user_id + ", username=" + username + ", content=" + content + ", editDate=" + editDate.toString() + "]";
    }
}
